<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:corejsf="http://corejsf.com">
    <ui:composition template="/usertemplate.xhtml">
        <ui:define name="title">
            <h:outputText value="View #{courseController.selected.courseName}"></h:outputText>
        </ui:define>
        <ui:define name="leftcontent">
            <h:form enctype="multipart/form-data"> 
                <h:inputHidden  value="#{staffController.NoLoginForUser()}"/>
                <div class="pad_left1">
                    <h2 class="pad_bot1">#{courseController.selected.courseName}</h2>
                        <p class="pad_bot1 pad_top2"><strong>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</strong></p>
                        <p class="pad_bot1 pad_top2"><strong>Topic: #{courseController.selected.topicId.topicName}</strong></p>
                        <p class="pad_bot1 pad_top2"><strong>
                                Assignment: &nbsp;
                                <p:fileUpload id="assignmentFile" value="#{courseController.file}" mode="simple" allowTypes="/(\.|\/)(doc|docx|xls|xlsx)$/" required="true" requiredMessage="#{bundle.CreateCourseRequiredMessage_assignmentFile}" sizeLimit="100000" /> 
                        
                        </strong>
                        </p>
                        <br/>
                        Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur sint occaecatcupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                </div>
                <br/>
                <h:commandLink action="#{courseController.updateForUser()}" class="button marg_left1">
                        <span><span>
                        #{bundle.EditCourseSaveLink}
                        </span></span>
                </h:commandLink>
                <h:link outcome="View" class="button marg_left1">
                        <span><span>
                        #{bundle.EditCourseViewLink}
                        </span></span>
                </h:link>
            </h:form>
        </ui:define>
        <ui:define name="rightcontent">
            <h:form>
                <div class="pad_left1">
                    <h2>Important Dates</h2>
                </div>
                <div class="wrapper">
                        <span class="date">
                            <h:outputText value="#{courseController.selected.startDate}" title="#{bundle.ViewCourseTitle_startDate}">
                                    <f:convertDateTime pattern="dd" />
                            </h:outputText>
                        </span>
                        <p class="pad_top2">
                            <a href="#">
                            <h:outputText value="#{courseController.selected.startDate}" title="#{bundle.ViewCourseTitle_startDate}">
                                    <f:convertDateTime pattern="MM/yyyy" />
                            </h:outputText>
                            </a>
                            <br/>
                                        Start Date</p>
                </div>
                <div class="wrapper">
                        <span class="date">
                            <h:outputText value="#{courseController.selected.endDate}" title="#{bundle.ViewCourseTitle_startDate}">
                                    <f:convertDateTime pattern="dd" />
                            </h:outputText>
                        </span>
                        <p class="pad_top2">
                            <a href="#">
                                <h:outputText value="#{courseController.selected.endDate}" title="#{bundle.ViewCourseTitle_startDate}">
                                        <f:convertDateTime pattern="MM/yyyy" />
                                </h:outputText>
                            </a>
                            <br/>
                                        End Date</p>
                </div>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
